<template>
  <div class="notice-item">
    <div class="title">
      <!-- <b>合模、浇筑、脱模超时警告</b> -->
      <b>{{ notice.procedurename }}超时警告</b>
      <span>2020-03-03 12:00</span>
    </div>
    <p>
      “{{ notice.beamno }}” 在{{ notice.beltlinename }}中，{{ notice.procedurename }}工序中超过24小时，请及时查看！
    </p>
    <div
      class="to"
      @click="toDetails"
    >
      杳看详情>>
    </div>
  </div>
</template>

<script>
export default {
  name: "NoticeItem",
  props: {
    notice: {
      type: Object,
      default: () => {
        return {
          title: '合模、浇筑、脱模超时警告',
          time: '2020-03-03 12:00',
          content: '“纳朗2号高架大桥右幅6-7” 在5号线，合模、浇筑、脱模工序中超过24小时，请及时查看！',
          path: ''
        };
      },
    },
  },
  data() {
    return {};
  },
  methods: {
    toDetails() {
      this.$router.push('/task/' + this.notice.procedurename);
    },
  }
};
</script>

<style lang="scss" scoped>
.notice-item {
  padding: 15px;
  border-bottom: 1px solid #f6f6f6;
  .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    b {
      font-size: 16px;
      color: #d3b142;
    }
    span {
      font-size: 12px;
      color: #999999;
    }
  }
  p {
    font-size: 14px;
    text-align: justify;
    color: #333333;
    margin: 10px 0;
  }
  .to {
    font-size: 14px;
    color: #557fb8;
    text-align: right;
  }
}
</style>
